#ifndef __LED_H
#define __LED_H

#include "main.h"
#include "bsp_gpio_out.h"

#define LED0_ON  GPIO_PIN_RESET
#define LED0_OFF GPIO_PIN_SET

#define LED1_ON  GPIO_PIN_SET
#define LED1_OFF GPIO_PIN_RESET

#define led0_switch(state) 	bsp_gpio_switch(LED0, state)
#define led0_open() 				led0_switch(LED0_ON)
#define led0_close() 				led0_switch(LED0_OFF)

#define led1_switch(state) 	bsp_gpio_switch(LED1, state)
#define led1_open() 				led0_switch(LED1_ON)
#define led1_close() 				led0_switch(LED1_OFF)

#endif

